jQuery.reloadbutton = function()
{
	var pid = location.pathname.match('/comments/([0-9]+)')[1],
		button = _j('[<a href="#" onclick="commentsHandler.refreshAll('+pid+', {button:this}); return false;">обновить комментарии</a>]'),
		comments = _j('#js-commentsHolder');
	
	button.css({
		'font-size': '10px', 
		'color': '#000 !important', 
		'background': '#d2d2d2', 
		'position': 'fixed', 
		'right': '5px', 
		'bottom': '5px', 
		'z-index': 9999, 
		'padding': '5px 10px', 
		'border-radius': '6px',
		'text-decoration': 'none !important'
	});
	
	comments.append(button);
}

jQuery(document).ready(function(){
	if (location.pathname.match('comments')) jQuery.reloadbutton();
});